package a.f.g.a.a;

import a.c.q;

public class b
  extends a
{
  private int d;
  private long h;
  private int i;
  private long j;
  public static boolean k;
  
  public b(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    super(paramDouble1, paramDouble2, paramDouble3, paramDouble4);
  }
  
  public void a(a.c.e parame)
  {
    throw new IllegalStateException("Please call addNode(Node,double,double) instead");
  }
  
  public void a(a.c.e parame, double paramDouble1, double paramDouble2)
  {
    this.a.add(parame);
    this.d += (int)paramDouble1;
    this.h += (int)paramDouble1 * (int)paramDouble1;
    this.i += (int)paramDouble2;
    this.j += (int)paramDouble2 * (int)paramDouble2;
  }
  
  public void b(a.c.e parame, double paramDouble1, double paramDouble2)
  {
    boolean bool2 = f.i;
    boolean bool1 = f.h;
    this.a.remove(parame);
    this.d -= (int)paramDouble1;
    this.h -= (int)paramDouble1 * (int)paramDouble1;
    this.i -= (int)paramDouble2;
    this.j -= (int)paramDouble2 * (int)paramDouble2;
    if ((bool2) || (q.n))
    {
      if (!bool2) {}
      f.h = !bool1;
    }
    if (q.o) {
      f.i = !bool2;
    }
  }
  
  public void b(a.c.e parame)
  {
    throw new IllegalStateException("Please call removeNode(Node,double,double) instead");
  }
  
  public double f()
  {
    boolean bool = f.i;
    if (!bool) {
      if (this.a.size() == 0) {
        return this.c;
      }
    }
    double d1 = this.d / this.a.size();
    if (!bool)
    {
      if (d1 < d()) {
        return d();
      }
      if (bool) {}
    }
    else if (d1 > b())
    {
      return b();
    }
    return d1;
  }
  
  public double h()
  {
    boolean bool = f.i;
    if (!bool) {
      if (this.a.size() == 0) {
        return this.b;
      }
    }
    double d1 = this.i / this.a.size();
    if (!bool)
    {
      if (d1 < e()) {
        return e();
      }
      if (bool) {}
    }
    else if (d1 > c())
    {
      return c();
    }
    return d1;
  }
  
  public double m()
  {
    return e.a(this.a.size(), this.d, this.h);
  }
  
  public double n()
  {
    return e.a(this.a.size(), this.i, this.j);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.a.a.b

 * JD-Core Version:    0.7.0.1

 */